package com.yk.anima.dao;

import com.github.pagehelper.Page;
import com.yk.anima.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {
    int deleteByPrimaryKey(@Param("oId") int oId,@Param("orderAdminId") int orderAdminId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer oId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> findAll(int orderAdminId);

    void save(@Param("orderAdminId") int orderAdminId,@Param("id") int id);

    Page<Orders> findByName(@Param("animalName") String name);

    void delete();
}